package com.myproject.filmrecommendationsys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;


/**
 * 评论对象 comment
 */
@Data
public class Comment
{
    private static final long serialVersionUID = 1L;
    private Long id;
    private Long userId;
    private Long filmId;
    private String content;
    private Date createdTime;
    private Date updatedTime;

    public Comment(Long id, Long userId, Long filmId, String content, Date createdTime, Date updatedTime) {
        this.id = id;
        this.userId = userId;
        this.filmId = filmId;
        this.content = content;
        this.createdTime = createdTime;
        this.updatedTime = updatedTime;
    }
    public Comment(){}

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", userId=" + userId +
                ", filmId=" + filmId +
                ", content='" + content + '\'' +
                ", createdTime=" + createdTime +
                ", updatedTime=" + updatedTime +
                '}';
    }
}
